<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <title>AdWords::V13::ReportService::ReportServiceWrapper</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" href="../../../../css/reset.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="../../../../css/main.css" type="text/css" media="screen" />
    <script src="../../../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="../../../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
    <script src="../../../../js/main.js" type="text/javascript" charset="utf-8"></script>
</head>

<body>     
    <div class="banner">
        <h1>
            <span class="type">Class</span> 
            AdWords::V13::ReportService::ReportServiceWrapper 
            
                <span class="parent">&lt; 
                    
                    Object
                    
                </span>
            
        </h1>
        <ul class="files">
            
            <li><a href="../../../../files/lib/adwords4r/v13/ReportServiceWrapper_rb.html">lib/adwords4r/v13/ReportServiceWrapper.rb</a></li>
            
        </ul>
    </div>
    <div id="bodyContent">
        <div id="content">
    
    <div class="description">
        <p>
Wrapper class for the v13 Report service. This class is automatically
generated.
</p>

    </div>
    

    

    
    

    
    
    <div class="sectiontitle">Methods</div>
    <dl class="methods">
    
        <dt>D</dt>
        <dd>
            <ul>
                
                <li><a href="#method-i-deleteReport">deleteReport</a>,</li>
                
                <li><a href="#method-i-downloadCsvReport">downloadCsvReport</a>,</li>
                
                <li><a href="#method-i-downloadXmlReport">downloadXmlReport</a></li>
                
            </ul>
        </dd>
    
        <dt>G</dt>
        <dd>
            <ul>
                
                <li><a href="#method-i-getAllJobs">getAllJobs</a>,</li>
                
                <li><a href="#method-i-getGzipReportDownloadUrl">getGzipReportDownloadUrl</a>,</li>
                
                <li><a href="#method-i-getReportDownloadUrl">getReportDownloadUrl</a>,</li>
                
                <li><a href="#method-i-getReportJobStatus">getReportJobStatus</a></li>
                
            </ul>
        </dd>
    
        <dt>N</dt>
        <dd>
            <ul>
                
                <li><a href="#method-c-new">new</a></li>
                
            </ul>
        </dd>
    
        <dt>S</dt>
        <dd>
            <ul>
                
                <li><a href="#method-i-scheduleReportJob">scheduleReportJob</a></li>
                
            </ul>
        </dd>
    
        <dt>V</dt>
        <dd>
            <ul>
                
                <li><a href="#method-i-validateReportJob">validateReportJob</a></li>
                
            </ul>
        </dd>
    
    </dl>
    

    

    

    

    

    
    <div class="sectiontitle">Attributes</div>
    <table border='0' cellpadding='5'>
        
        <tr valign='top'>
            <td class='attr-rw'>
                [R]
            </td>
            <td class='attr-name'>api</td>
            <td class='attr-desc'><p>
Holds the <a href="../../API.html">AdWords::API</a> object to which the
wrapper belongs.
</p></td>
        </tr>
        
        <tr valign='top'>
            <td class='attr-rw'>
                [R]
            </td>
            <td class='attr-name'>module</td>
            <td class='attr-desc'><p>
Holds a shortcut to the parent module. Use this to avoid typing the full
class name when creating classes belonging to this service, e.g.
</p>
<pre>
 service_object.module::ClassName
</pre>
<p>
instead of
</p>
<pre>
 AdWords::V13::ReportService::ClassName
</pre>
<p>
This will make it easier to migrate your code between <a
href="../../API.html">API</a> versions.
</p></td>
        </tr>
        
    </table>
    

    
            <div class="sectiontitle">Class Public methods</div>
            
            <div class="method">
                <div class="title" id="method-c-new">
                    
                    <a name="method-c-new"></a><b>new</b>(driver, api)
                    
                </div>
                
                <div class="description">
                  <p>
Constructor for <a
href="ReportServiceWrapper.html">ReportServiceWrapper</a>.
</p>
<p>
Args:
</p>
<ul>
<li><p>
driver: SOAP::RPC::Driver object with the remote SOAP methods for this
service
</p>
</li>
<li><p>
api: the <a href="../../API.html">AdWords::API</a> object to which the
wrapper belongs
</p>
</li>
</ul>

                </div>
                
                
                
                
                <div class="sourcecode">
                    <p class="source-link">
                        Source: <a href="javascript:toggleSource('method-c-new_source')" id="l_method-c-new_source">show</a>
                        
                    </p>
                    <div id="method-c-new_source" class="dyn-source">
                        <pre>    <span class="ruby-comment cmt"># File lib/adwords4r/v13/ReportServiceWrapper.rb, line 34</span>
34:         <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">driver</span>, <span class="ruby-identifier">api</span>)
35:           <span class="ruby-ivar">@driver</span> = <span class="ruby-identifier">driver</span>
36:           <span class="ruby-ivar">@api</span> = <span class="ruby-identifier">api</span>
37:           <span class="ruby-ivar">@module</span> = <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">V13</span><span class="ruby-operator">::</span><span class="ruby-constant">ReportService</span>
38:         <span class="ruby-keyword kw">end</span></pre>
                    </div>
                </div>
                
            </div>
            
            <div class="sectiontitle">Instance Public methods</div>
            
            <div class="method">
                <div class="title" id="method-i-deleteReport">
                    
                    <a name="method-i-deleteReport"></a><b>deleteReport</b>(reportJobId)
                    
                </div>
                
                <div class="description">
                  <p>
Calls the <a
href="http://code.google.com/apis/adwords/docs/developer/ReportService.html#deleteReport">deleteReport</a>
method of the Report service. Check <a
href="http://code.google.com/apis/adwords/docs/developer/ReportService.html#deleteReport">the
online documentation for this method</a>.
</p>
<p>
Args:
</p>
<ul>
<li><p>
reportJobId: SOAP::SOAPLong
</p>
</li>
</ul>
<p>
Raises: <a href="../../Error/ApiError.html">Error::ApiError</a> (or a
subclass thereof) if a SOAP fault occurs.
</p>

                </div>
                
                
                
                
                <div class="sourcecode">
                    <p class="source-link">
                        Source: <a href="javascript:toggleSource('method-i-deleteReport_source')" id="l_method-i-deleteReport_source">show</a>
                        
                    </p>
                    <div id="method-i-deleteReport_source" class="dyn-source">
                        <pre>    <span class="ruby-comment cmt"># File lib/adwords4r/v13/ReportServiceWrapper.rb, line 49</span>
49:         <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">deleteReport</span>(<span class="ruby-identifier">reportJobId</span>)
50:           <span class="ruby-keyword kw">begin</span>
51:             <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Service</span>.<span class="ruby-identifier">validate_param</span>(<span class="ruby-value str">'reportJobId'</span>,
52:                 <span class="ruby-identifier">reportJobId</span>, <span class="ruby-constant">SOAP</span><span class="ruby-operator">::</span><span class="ruby-constant">SOAPLong</span>)
53:             <span class="ruby-comment cmt"># Construct request object and make API call</span>
54:             <span class="ruby-identifier">obj</span> = <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">V13</span><span class="ruby-operator">::</span><span class="ruby-constant">ReportService</span><span class="ruby-operator">::</span><span class="ruby-constant">DeleteReport</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">reportJobId</span>)
55:             <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@driver</span>.<span class="ruby-identifier">deleteReport</span>(<span class="ruby-identifier">obj</span>)
56:           <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">SOAP</span><span class="ruby-operator">::</span><span class="ruby-constant">FaultError</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">fault</span>
57:             <span class="ruby-identifier">raise</span>(<span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span><span class="ruby-operator">::</span><span class="ruby-identifier">create_specific_api_error</span>(<span class="ruby-identifier">fault</span>),
58:                 <span class="ruby-value str">&quot;deleteReport Call Failed: &quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">fault</span>.<span class="ruby-identifier">faultstring</span>.<span class="ruby-identifier">to_s</span>, <span class="ruby-identifier">caller</span>)
59:           <span class="ruby-keyword kw">end</span>
60:         <span class="ruby-keyword kw">end</span></pre>
                    </div>
                </div>
                
            </div>
            
            <div class="method">
                <div class="title" id="method-i-downloadCsvReport">
                    
                    <a name="method-i-downloadCsvReport"></a><b>downloadCsvReport</b>(job_id)
                    
                </div>
                
                <div class="description">
                  <p>
<em>Extension method</em> &#8212; Calls the
AdWords::Extensions.downloadCsvReport method with <tt>self</tt> as the
first parameter.
</p>

                </div>
                
                
                
                
                <div class="sourcecode">
                    <p class="source-link">
                        Source: <a href="javascript:toggleSource('method-i-downloadCsvReport_source')" id="l_method-i-downloadCsvReport_source">show</a>
                        
                    </p>
                    <div id="method-i-downloadCsvReport_source" class="dyn-source">
                        <pre>     <span class="ruby-comment cmt"># File lib/adwords4r/v13/ReportServiceWrapper.rb, line 212</span>
212:         <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">downloadCsvReport</span>(<span class="ruby-identifier">job_id</span>)
213:           <span class="ruby-keyword kw">return</span> <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Extensions</span>.<span class="ruby-identifier">downloadCsvReport</span>(<span class="ruby-keyword kw">self</span>, <span class="ruby-identifier">job_id</span>)
214:         <span class="ruby-keyword kw">end</span></pre>
                    </div>
                </div>
                
            </div>
            
            <div class="method">
                <div class="title" id="method-i-downloadXmlReport">
                    
                    <a name="method-i-downloadXmlReport"></a><b>downloadXmlReport</b>(job_id)
                    
                </div>
                
                <div class="description">
                  <p>
<em>Extension method</em> &#8212; Calls the
AdWords::Extensions.downloadXmlReport method with <tt>self</tt> as the
first parameter.
</p>

                </div>
                
                
                
                
                <div class="sourcecode">
                    <p class="source-link">
                        Source: <a href="javascript:toggleSource('method-i-downloadXmlReport_source')" id="l_method-i-downloadXmlReport_source">show</a>
                        
                    </p>
                    <div id="method-i-downloadXmlReport_source" class="dyn-source">
                        <pre>     <span class="ruby-comment cmt"># File lib/adwords4r/v13/ReportServiceWrapper.rb, line 206</span>
206:         <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">downloadXmlReport</span>(<span class="ruby-identifier">job_id</span>)
207:           <span class="ruby-keyword kw">return</span> <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Extensions</span>.<span class="ruby-identifier">downloadXmlReport</span>(<span class="ruby-keyword kw">self</span>, <span class="ruby-identifier">job_id</span>)
208:         <span class="ruby-keyword kw">end</span></pre>
                    </div>
                </div>
                
            </div>
            
            <div class="method">
                <div class="title" id="method-i-getAllJobs">
                    
                    <a name="method-i-getAllJobs"></a><b>getAllJobs</b>()
                    
                </div>
                
                <div class="description">
                  <p>
Calls the <a
href="http://code.google.com/apis/adwords/docs/developer/ReportService.html#getAllJobs">getAllJobs</a>
method of the Report service. Check <a
href="http://code.google.com/apis/adwords/docs/developer/ReportService.html#getAllJobs">the
online documentation for this method</a>.
</p>
<p>
Returns:
</p>
<ul>
<li><p>
getAllJobsReturn: SOAP::SOAPArray of <a
href="ReportJob.html">AdWords::V13::ReportService::ReportJob</a>
</p>
</li>
</ul>
<p>
Raises: <a href="../../Error/ApiError.html">Error::ApiError</a> (or a
subclass thereof) if a SOAP fault occurs.
</p>

                </div>
                
                
                
                
                <div class="sourcecode">
                    <p class="source-link">
                        Source: <a href="javascript:toggleSource('method-i-getAllJobs_source')" id="l_method-i-getAllJobs_source">show</a>
                        
                    </p>
                    <div id="method-i-getAllJobs_source" class="dyn-source">
                        <pre>    <span class="ruby-comment cmt"># File lib/adwords4r/v13/ReportServiceWrapper.rb, line 71</span>
71:         <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">getAllJobs</span>()
72:           <span class="ruby-keyword kw">begin</span>
73:             <span class="ruby-comment cmt"># Construct request object and make API call</span>
74:             <span class="ruby-identifier">obj</span> = <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">V13</span><span class="ruby-operator">::</span><span class="ruby-constant">ReportService</span><span class="ruby-operator">::</span><span class="ruby-constant">GetAllJobs</span>.<span class="ruby-identifier">new</span>()
75:             <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@driver</span>.<span class="ruby-identifier">getAllJobs</span>(<span class="ruby-identifier">obj</span>)
76:           <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">SOAP</span><span class="ruby-operator">::</span><span class="ruby-constant">FaultError</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">fault</span>
77:             <span class="ruby-identifier">raise</span>(<span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span><span class="ruby-operator">::</span><span class="ruby-identifier">create_specific_api_error</span>(<span class="ruby-identifier">fault</span>),
78:                 <span class="ruby-value str">&quot;getAllJobs Call Failed: &quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">fault</span>.<span class="ruby-identifier">faultstring</span>.<span class="ruby-identifier">to_s</span>, <span class="ruby-identifier">caller</span>)
79:           <span class="ruby-keyword kw">end</span>
80:         <span class="ruby-keyword kw">end</span></pre>
                    </div>
                </div>
                
            </div>
            
            <div class="method">
                <div class="title" id="method-i-getGzipReportDownloadUrl">
                    
                    <a name="method-i-getGzipReportDownloadUrl"></a><b>getGzipReportDownloadUrl</b>(reportJobId)
                    
                </div>
                
                <div class="description">
                  <p>
Calls the <a
href="http://code.google.com/apis/adwords/docs/developer/ReportService.html#getGzipReportDownloadUrl">getGzipReportDownloadUrl</a>
method of the Report service. Check <a
href="http://code.google.com/apis/adwords/docs/developer/ReportService.html#getGzipReportDownloadUrl">the
online documentation for this method</a>.
</p>
<p>
Args:
</p>
<ul>
<li><p>
reportJobId: SOAP::SOAPLong
</p>
</li>
</ul>
<p>
Returns:
</p>
<ul>
<li><p>
getGzipReportDownloadUrlReturn: SOAP::SOAPString
</p>
</li>
</ul>
<p>
Raises: <a href="../../Error/ApiError.html">Error::ApiError</a> (or a
subclass thereof) if a SOAP fault occurs.
</p>

                </div>
                
                
                
                
                <div class="sourcecode">
                    <p class="source-link">
                        Source: <a href="javascript:toggleSource('method-i-getGzipReportDownloadUrl_source')" id="l_method-i-getGzipReportDownloadUrl_source">show</a>
                        
                    </p>
                    <div id="method-i-getGzipReportDownloadUrl_source" class="dyn-source">
                        <pre>     <span class="ruby-comment cmt"># File lib/adwords4r/v13/ReportServiceWrapper.rb, line 94</span>
 94:         <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">getGzipReportDownloadUrl</span>(<span class="ruby-identifier">reportJobId</span>)
 95:           <span class="ruby-keyword kw">begin</span>
 96:             <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Service</span>.<span class="ruby-identifier">validate_param</span>(<span class="ruby-value str">'reportJobId'</span>,
 97:                 <span class="ruby-identifier">reportJobId</span>, <span class="ruby-constant">SOAP</span><span class="ruby-operator">::</span><span class="ruby-constant">SOAPLong</span>)
 98:             <span class="ruby-comment cmt"># Construct request object and make API call</span>
 99:             <span class="ruby-identifier">obj</span> = <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">V13</span><span class="ruby-operator">::</span><span class="ruby-constant">ReportService</span><span class="ruby-operator">::</span><span class="ruby-constant">GetGzipReportDownloadUrl</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">reportJobId</span>)
100:             <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@driver</span>.<span class="ruby-identifier">getGzipReportDownloadUrl</span>(<span class="ruby-identifier">obj</span>)
101:           <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">SOAP</span><span class="ruby-operator">::</span><span class="ruby-constant">FaultError</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">fault</span>
102:             <span class="ruby-identifier">raise</span>(<span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span><span class="ruby-operator">::</span><span class="ruby-identifier">create_specific_api_error</span>(<span class="ruby-identifier">fault</span>),
103:                 <span class="ruby-value str">&quot;getGzipReportDownloadUrl Call Failed: &quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">fault</span>.<span class="ruby-identifier">faultstring</span>.<span class="ruby-identifier">to_s</span>, <span class="ruby-identifier">caller</span>)
104:           <span class="ruby-keyword kw">end</span>
105:         <span class="ruby-keyword kw">end</span></pre>
                    </div>
                </div>
                
            </div>
            
            <div class="method">
                <div class="title" id="method-i-getReportDownloadUrl">
                    
                    <a name="method-i-getReportDownloadUrl"></a><b>getReportDownloadUrl</b>(reportJobId)
                    
                </div>
                
                <div class="description">
                  <p>
Calls the <a
href="http://code.google.com/apis/adwords/docs/developer/ReportService.html#getReportDownloadUrl">getReportDownloadUrl</a>
method of the Report service. Check <a
href="http://code.google.com/apis/adwords/docs/developer/ReportService.html#getReportDownloadUrl">the
online documentation for this method</a>.
</p>
<p>
Args:
</p>
<ul>
<li><p>
reportJobId: SOAP::SOAPLong
</p>
</li>
</ul>
<p>
Returns:
</p>
<ul>
<li><p>
getReportDownloadUrlReturn: SOAP::SOAPString
</p>
</li>
</ul>
<p>
Raises: <a href="../../Error/ApiError.html">Error::ApiError</a> (or a
subclass thereof) if a SOAP fault occurs.
</p>

                </div>
                
                
                
                
                <div class="sourcecode">
                    <p class="source-link">
                        Source: <a href="javascript:toggleSource('method-i-getReportDownloadUrl_source')" id="l_method-i-getReportDownloadUrl_source">show</a>
                        
                    </p>
                    <div id="method-i-getReportDownloadUrl_source" class="dyn-source">
                        <pre>     <span class="ruby-comment cmt"># File lib/adwords4r/v13/ReportServiceWrapper.rb, line 119</span>
119:         <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">getReportDownloadUrl</span>(<span class="ruby-identifier">reportJobId</span>)
120:           <span class="ruby-keyword kw">begin</span>
121:             <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Service</span>.<span class="ruby-identifier">validate_param</span>(<span class="ruby-value str">'reportJobId'</span>,
122:                 <span class="ruby-identifier">reportJobId</span>, <span class="ruby-constant">SOAP</span><span class="ruby-operator">::</span><span class="ruby-constant">SOAPLong</span>)
123:             <span class="ruby-comment cmt"># Construct request object and make API call</span>
124:             <span class="ruby-identifier">obj</span> = <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">V13</span><span class="ruby-operator">::</span><span class="ruby-constant">ReportService</span><span class="ruby-operator">::</span><span class="ruby-constant">GetReportDownloadUrl</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">reportJobId</span>)
125:             <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@driver</span>.<span class="ruby-identifier">getReportDownloadUrl</span>(<span class="ruby-identifier">obj</span>)
126:           <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">SOAP</span><span class="ruby-operator">::</span><span class="ruby-constant">FaultError</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">fault</span>
127:             <span class="ruby-identifier">raise</span>(<span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span><span class="ruby-operator">::</span><span class="ruby-identifier">create_specific_api_error</span>(<span class="ruby-identifier">fault</span>),
128:                 <span class="ruby-value str">&quot;getReportDownloadUrl Call Failed: &quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">fault</span>.<span class="ruby-identifier">faultstring</span>.<span class="ruby-identifier">to_s</span>, <span class="ruby-identifier">caller</span>)
129:           <span class="ruby-keyword kw">end</span>
130:         <span class="ruby-keyword kw">end</span></pre>
                    </div>
                </div>
                
            </div>
            
            <div class="method">
                <div class="title" id="method-i-getReportJobStatus">
                    
                    <a name="method-i-getReportJobStatus"></a><b>getReportJobStatus</b>(reportJobId)
                    
                </div>
                
                <div class="description">
                  <p>
Calls the <a
href="http://code.google.com/apis/adwords/docs/developer/ReportService.html#getReportJobStatus">getReportJobStatus</a>
method of the Report service. Check <a
href="http://code.google.com/apis/adwords/docs/developer/ReportService.html#getReportJobStatus">the
online documentation for this method</a>.
</p>
<p>
Args:
</p>
<ul>
<li><p>
reportJobId: SOAP::SOAPLong
</p>
</li>
</ul>
<p>
Returns:
</p>
<ul>
<li><p>
getReportJobStatusReturn: <a
href="ReportJobStatus.html">AdWords::V13::ReportService::ReportJobStatus</a>
</p>
</li>
</ul>
<p>
Raises: <a href="../../Error/ApiError.html">Error::ApiError</a> (or a
subclass thereof) if a SOAP fault occurs.
</p>

                </div>
                
                
                
                
                <div class="sourcecode">
                    <p class="source-link">
                        Source: <a href="javascript:toggleSource('method-i-getReportJobStatus_source')" id="l_method-i-getReportJobStatus_source">show</a>
                        
                    </p>
                    <div id="method-i-getReportJobStatus_source" class="dyn-source">
                        <pre>     <span class="ruby-comment cmt"># File lib/adwords4r/v13/ReportServiceWrapper.rb, line 144</span>
144:         <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">getReportJobStatus</span>(<span class="ruby-identifier">reportJobId</span>)
145:           <span class="ruby-keyword kw">begin</span>
146:             <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Service</span>.<span class="ruby-identifier">validate_param</span>(<span class="ruby-value str">'reportJobId'</span>,
147:                 <span class="ruby-identifier">reportJobId</span>, <span class="ruby-constant">SOAP</span><span class="ruby-operator">::</span><span class="ruby-constant">SOAPLong</span>)
148:             <span class="ruby-comment cmt"># Construct request object and make API call</span>
149:             <span class="ruby-identifier">obj</span> = <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">V13</span><span class="ruby-operator">::</span><span class="ruby-constant">ReportService</span><span class="ruby-operator">::</span><span class="ruby-constant">GetReportJobStatus</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">reportJobId</span>)
150:             <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@driver</span>.<span class="ruby-identifier">getReportJobStatus</span>(<span class="ruby-identifier">obj</span>)
151:           <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">SOAP</span><span class="ruby-operator">::</span><span class="ruby-constant">FaultError</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">fault</span>
152:             <span class="ruby-identifier">raise</span>(<span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span><span class="ruby-operator">::</span><span class="ruby-identifier">create_specific_api_error</span>(<span class="ruby-identifier">fault</span>),
153:                 <span class="ruby-value str">&quot;getReportJobStatus Call Failed: &quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">fault</span>.<span class="ruby-identifier">faultstring</span>.<span class="ruby-identifier">to_s</span>, <span class="ruby-identifier">caller</span>)
154:           <span class="ruby-keyword kw">end</span>
155:         <span class="ruby-keyword kw">end</span></pre>
                    </div>
                </div>
                
            </div>
            
            <div class="method">
                <div class="title" id="method-i-scheduleReportJob">
                    
                    <a name="method-i-scheduleReportJob"></a><b>scheduleReportJob</b>(job)
                    
                </div>
                
                <div class="description">
                  <p>
Calls the <a
href="http://code.google.com/apis/adwords/docs/developer/ReportService.html#scheduleReportJob">scheduleReportJob</a>
method of the Report service. Check <a
href="http://code.google.com/apis/adwords/docs/developer/ReportService.html#scheduleReportJob">the
online documentation for this method</a>.
</p>
<p>
Args:
</p>
<ul>
<li><p>
job: <a href="ReportJob.html">AdWords::V13::ReportService::ReportJob</a>
</p>
</li>
</ul>
<p>
Returns:
</p>
<ul>
<li><p>
scheduleReportJobReturn: SOAP::SOAPLong
</p>
</li>
</ul>
<p>
Raises: <a href="../../Error/ApiError.html">Error::ApiError</a> (or a
subclass thereof) if a SOAP fault occurs.
</p>

                </div>
                
                
                
                
                <div class="sourcecode">
                    <p class="source-link">
                        Source: <a href="javascript:toggleSource('method-i-scheduleReportJob_source')" id="l_method-i-scheduleReportJob_source">show</a>
                        
                    </p>
                    <div id="method-i-scheduleReportJob_source" class="dyn-source">
                        <pre>     <span class="ruby-comment cmt"># File lib/adwords4r/v13/ReportServiceWrapper.rb, line 169</span>
169:         <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">scheduleReportJob</span>(<span class="ruby-identifier">job</span>)
170:           <span class="ruby-keyword kw">begin</span>
171:             <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Service</span>.<span class="ruby-identifier">validate_param</span>(<span class="ruby-value str">'job'</span>,
172:                 <span class="ruby-identifier">job</span>, <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">V13</span><span class="ruby-operator">::</span><span class="ruby-constant">ReportService</span><span class="ruby-operator">::</span><span class="ruby-constant">ReportJob</span>)
173:             <span class="ruby-comment cmt"># Construct request object and make API call</span>
174:             <span class="ruby-identifier">obj</span> = <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">V13</span><span class="ruby-operator">::</span><span class="ruby-constant">ReportService</span><span class="ruby-operator">::</span><span class="ruby-constant">ScheduleReportJob</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">job</span>)
175:             <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@driver</span>.<span class="ruby-identifier">scheduleReportJob</span>(<span class="ruby-identifier">obj</span>)
176:           <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">SOAP</span><span class="ruby-operator">::</span><span class="ruby-constant">FaultError</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">fault</span>
177:             <span class="ruby-identifier">raise</span>(<span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span><span class="ruby-operator">::</span><span class="ruby-identifier">create_specific_api_error</span>(<span class="ruby-identifier">fault</span>),
178:                 <span class="ruby-value str">&quot;scheduleReportJob Call Failed: &quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">fault</span>.<span class="ruby-identifier">faultstring</span>.<span class="ruby-identifier">to_s</span>, <span class="ruby-identifier">caller</span>)
179:           <span class="ruby-keyword kw">end</span>
180:         <span class="ruby-keyword kw">end</span></pre>
                    </div>
                </div>
                
            </div>
            
            <div class="method">
                <div class="title" id="method-i-validateReportJob">
                    
                    <a name="method-i-validateReportJob"></a><b>validateReportJob</b>(job)
                    
                </div>
                
                <div class="description">
                  <p>
Calls the <a
href="http://code.google.com/apis/adwords/docs/developer/ReportService.html#validateReportJob">validateReportJob</a>
method of the Report service. Check <a
href="http://code.google.com/apis/adwords/docs/developer/ReportService.html#validateReportJob">the
online documentation for this method</a>.
</p>
<p>
Args:
</p>
<ul>
<li><p>
job: <a href="ReportJob.html">AdWords::V13::ReportService::ReportJob</a>
</p>
</li>
</ul>
<p>
Raises: <a href="../../Error/ApiError.html">Error::ApiError</a> (or a
subclass thereof) if a SOAP fault occurs.
</p>

                </div>
                
                
                
                
                <div class="sourcecode">
                    <p class="source-link">
                        Source: <a href="javascript:toggleSource('method-i-validateReportJob_source')" id="l_method-i-validateReportJob_source">show</a>
                        
                    </p>
                    <div id="method-i-validateReportJob_source" class="dyn-source">
                        <pre>     <span class="ruby-comment cmt"># File lib/adwords4r/v13/ReportServiceWrapper.rb, line 191</span>
191:         <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">validateReportJob</span>(<span class="ruby-identifier">job</span>)
192:           <span class="ruby-keyword kw">begin</span>
193:             <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Service</span>.<span class="ruby-identifier">validate_param</span>(<span class="ruby-value str">'job'</span>,
194:                 <span class="ruby-identifier">job</span>, <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">V13</span><span class="ruby-operator">::</span><span class="ruby-constant">ReportService</span><span class="ruby-operator">::</span><span class="ruby-constant">ReportJob</span>)
195:             <span class="ruby-comment cmt"># Construct request object and make API call</span>
196:             <span class="ruby-identifier">obj</span> = <span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">V13</span><span class="ruby-operator">::</span><span class="ruby-constant">ReportService</span><span class="ruby-operator">::</span><span class="ruby-constant">ValidateReportJob</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">job</span>)
197:             <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@driver</span>.<span class="ruby-identifier">validateReportJob</span>(<span class="ruby-identifier">obj</span>)
198:           <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">SOAP</span><span class="ruby-operator">::</span><span class="ruby-constant">FaultError</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">fault</span>
199:             <span class="ruby-identifier">raise</span>(<span class="ruby-constant">AdWords</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span><span class="ruby-operator">::</span><span class="ruby-identifier">create_specific_api_error</span>(<span class="ruby-identifier">fault</span>),
200:                 <span class="ruby-value str">&quot;validateReportJob Call Failed: &quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">fault</span>.<span class="ruby-identifier">faultstring</span>.<span class="ruby-identifier">to_s</span>, <span class="ruby-identifier">caller</span>)
201:           <span class="ruby-keyword kw">end</span>
202:         <span class="ruby-keyword kw">end</span></pre>
                    </div>
                </div>
                
            </div>
            
</div>
    </div>
  </body>
</html>    